﻿using System;
using System.Collections.Generic;
using ECM7.NantContrib.Tasks.Wix;
using NAnt.Core;
using NAnt.Core.Attributes;

namespace ECM7.NantContrib.Types
{
	public class WixFolderElement : Element, IWixFolderElement
	{
		[TaskAttribute("component-id", Required = true)]
		public string ComponentId { get; set; }

		[TaskAttribute("folder-id")]
		public string FolderId { get; set; }

		[TaskAttribute("path", Required = true)]
		public string Path { get; set; }

		[TaskAttribute("folder-name")]
		public string FolderName { get; set; }
	}

	[Serializable]
	public class WixFolderElementCollection : List<WixFolderElement>
	{
		public WixFolderElementCollection()
		{
		}

		public WixFolderElementCollection(WixFolderElement value)
		{
			Add(value);
		}

		public WixFolderElementCollection(IEnumerable<WixFolderElement> value)
		{
			AddRange(value);
		}
	}
}
